package com.bwie.common.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author <a href="mailto:2891704036@qq.com">zhiyuheng</a>
 * @version 1.0
 * @description:
 * @date 2025/8/28 11:06
 */
@Data
public class OrderReq {
    /**
     * 订单编号
     */
    private String number;
    /**
     * 菜品名称
     */
    @NotBlank(message = "菜品名称不得为空")
    private String allDishName;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 总价
     */
    @NotNull(message = "总价不得为空")
    private BigDecimal totalPrice;
    /**
     * 收货电话
     */
    private String phone;

    /**
     * 准时宝
     */
    private Integer timelyTreasure;
    /**
     * 确认收货
     */
    private Integer status;
}
